PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Geometric / Dots / martin - beamer code 20h - rhythmic and fast.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=2 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=2 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=0 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=1 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.005 |
| 26 | fWaveScale=0.118 |
| 27 | fWaveSmoothing=0.900 |
| 28 | fWaveParam=-0.480 |
| 29 | fModWaveAlphaStart=0.400 |
| 30 | fModWaveAlphaEnd=1.600 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.800 |
| 45 | wave_g=0.490 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=1.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=0 |
| 76 | wavecode_0_samples=64 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=1 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=17.41885 |
| 83 | wavecode_0_smoothing=0.20000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=0.000 |
| 88 | wave_0_per_frame1=t1 = 0; |
| 89 | wave_0_per_frame2=t2 = 0; |
| 90 | wave_0_per_frame3=t3 = 0; |
| 91 | wave_0_per_point1=instance = t1;copies = 1; |
| 92 | wave_0_per_point2=recsize = reg01; |
| 93 | wave_0_per_point3=n = int(instance/copies)*recsize; |
| 94 | wave_0_per_point4=frac = (instance%copies)/copies; |
| 95 | wave_0_per_point5= |
| 96 | wave_0_per_point6=x = gmegabuf (n) * frac + (1-frac) * megabuf(n); |
| 97 | wave_0_per_point7=y = ((gmegabuf (n+1)-0.5)/q32+0.5) * frac + (1-frac) * megabuf(n+1); |
| 98 | wave_0_per_point8= |
| 99 | wave_0_per_point9= |
| 100 | wave_0_per_point10=if (instance % copies == copies-1, |
| 101 | wave_0_per_point11= megabuf (n) = gmegabuf(n); |
| 102 | wave_0_per_point12= megabuf (n+1) = (gmegabuf (n+1)-0.5)/q32+0.5; |
| 103 | wave_0_per_point13=,0); |
| 104 | wave_0_per_point14= |
| 105 | wave_0_per_point15= |
| 106 | wave_0_per_point16=rad = 0.04 * q32; |
| 107 | wave_0_per_point17=a = gmegabuf(n+4) * (1-(1-frac)*0.5) * (t1 < 7)/2; |
| 108 | wave_0_per_point18=t1 += 1; |
| 109 | wavecode_1_enabled=0 |
| 110 | wavecode_1_samples=128 |
| 111 | wavecode_1_sep=0 |
| 112 | wavecode_1_bSpectrum=0 |
| 113 | wavecode_1_bUseDots=0 |
| 114 | wavecode_1_bDrawThick=0 |
| 115 | wavecode_1_bAdditive=0 |
| 116 | wavecode_1_scaling=0.89152 |
| 117 | wavecode_1_smoothing=0.82000 |
| 118 | wavecode_1_r=1.000 |
| 119 | wavecode_1_g=1.000 |
| 120 | wavecode_1_b=1.000 |
| 121 | wavecode_1_a=0.100 |
| 122 | wavecode_2_enabled=0 |
| 123 | wavecode_2_samples=32 |
| 124 | wavecode_2_sep=0 |
| 125 | wavecode_2_bSpectrum=0 |
| 126 | wavecode_2_bUseDots=0 |
| 127 | wavecode_2_bDrawThick=0 |
| 128 | wavecode_2_bAdditive=0 |
| 129 | wavecode_2_scaling=0.89152 |
| 130 | wavecode_2_smoothing=0.82000 |
| 131 | wavecode_2_r=0.000 |
| 132 | wavecode_2_g=0.200 |
| 133 | wavecode_2_b=0.600 |
| 134 | wavecode_2_a=1.000 |
| 135 | wavecode_3_enabled=0 |
| 136 | wavecode_3_samples=512 |
| 137 | wavecode_3_sep=0 |
| 138 | wavecode_3_bSpectrum=1 |
| 139 | wavecode_3_bUseDots=1 |
| 140 | wavecode_3_bDrawThick=0 |
| 141 | wavecode_3_bAdditive=0 |
| 142 | wavecode_3_scaling=1.00000 |
| 143 | wavecode_3_smoothing=0.50000 |
| 144 | wavecode_3_r=1.000 |
| 145 | wavecode_3_g=1.000 |
| 146 | wavecode_3_b=1.000 |
| 147 | wavecode_3_a=1.000 |
| 148 | shapecode_0_enabled=1 |
| 149 | shapecode_0_sides=12 |
| 150 | shapecode_0_additive=1 |
| 151 | shapecode_0_thickOutline=1 |
| 152 | shapecode_0_textured=0 |
| 153 | shapecode_0_num_inst=64 |
| 154 | shapecode_0_x=0.500 |
| 155 | shapecode_0_y=0.500 |
| 156 | shapecode_0_rad=0.06598 |
| 157 | shapecode_0_ang=0.00000 |
| 158 | shapecode_0_tex_ang=1.00531 |
| 159 | shapecode_0_tex_zoom=0.12726 |
| 160 | shapecode_0_r=1.000 |
| 161 | shapecode_0_g=1.000 |
| 162 | shapecode_0_b=1.000 |
| 163 | shapecode_0_a=1.000 |
| 164 | shapecode_0_r2=1.000 |
| 165 | shapecode_0_g2=1.000 |
| 166 | shapecode_0_b2=1.000 |
| 167 | shapecode_0_a2=0.500 |
| 168 | shapecode_0_border_r=1.000 |
| 169 | shapecode_0_border_g=1.000 |
| 170 | shapecode_0_border_b=1.000 |
| 171 | shapecode_0_border_a=0.000 |
| 172 | shape_0_per_frame1=copies = 8; |
| 173 | shape_0_per_frame2=recsize = reg01; |
| 174 | shape_0_per_frame3=n = int(instance/copies)*recsize; |
| 175 | shape_0_per_frame4=frac = (instance%copies)/copies; |
| 176 | shape_0_per_frame5= |
| 177 | shape_0_per_frame6=x = gmegabuf (n) * frac + (1-frac) * megabuf(n); |
| 178 | shape_0_per_frame7=y = gmegabuf (n+1) * frac + (1-frac) * megabuf(n+1); |
| 179 | shape_0_per_frame8= |
| 180 | shape_0_per_frame9= |
| 181 | shape_0_per_frame10=if (instance % copies == copies-1, |
| 182 | shape_0_per_frame11= megabuf (n) = gmegabuf(n); |
| 183 | shape_0_per_frame12= megabuf (n+1) = gmegabuf (n+1); |
| 184 | shape_0_per_frame13=,0); |
| 185 | shape_0_per_frame14= |
| 186 | shape_0_per_frame15= |
| 187 | shape_0_per_frame16=rad = 0.03 * q32; |
| 188 | shape_0_per_frame17=a = gmegabuf(n+4) * (1-(1-frac)*0.5)/2; |
| 189 | shape_0_per_frame18=a2 = a; |
| 190 | shapecode_1_enabled=0 |
| 191 | shapecode_1_sides=14 |
| 192 | shapecode_1_additive=1 |
| 193 | shapecode_1_thickOutline=0 |
| 194 | shapecode_1_textured=0 |
| 195 | shapecode_1_num_inst=11 |
| 196 | shapecode_1_x=0.260 |
| 197 | shapecode_1_y=0.200 |
| 198 | shapecode_1_rad=0.07243 |
| 199 | shapecode_1_ang=0.00000 |
| 200 | shapecode_1_tex_ang=0.00000 |
| 201 | shapecode_1_tex_zoom=0.93550 |
| 202 | shapecode_1_r=1.000 |
| 203 | shapecode_1_g=1.000 |
| 204 | shapecode_1_b=1.000 |
| 205 | shapecode_1_a=1.000 |
| 206 | shapecode_1_r2=1.000 |
| 207 | shapecode_1_g2=1.000 |
| 208 | shapecode_1_b2=1.000 |
| 209 | shapecode_1_a2=1.000 |
| 210 | shapecode_1_border_r=1.000 |
| 211 | shapecode_1_border_g=0.000 |
| 212 | shapecode_1_border_b=0.000 |
| 213 | shapecode_1_border_a=0.000 |
| 214 | shape_1_per_frame1=x = (q7%16)/16; |
| 215 | shape_1_per_frame2=y = instance / 8; |
| 216 | shape_1_per_frame3= |
| 217 | shape_1_per_frame4=if (instance%2==0, x = 1-x,0); |
| 218 | shape_1_per_frame5= |
| 219 | shape_1_per_frame6=//x = sin(3.1416/8*(q7+instance))/3+0.5; |
| 220 | shape_1_per_frame7=//y = sin(3.1416/9*(q7+instance))/3+0.5; |
| 221 | shapecode_2_enabled=0 |
| 222 | shapecode_2_sides=4 |
| 223 | shapecode_2_additive=0 |
| 224 | shapecode_2_thickOutline=0 |
| 225 | shapecode_2_textured=0 |
| 226 | shapecode_2_num_inst=200 |
| 227 | shapecode_2_x=0.650 |
| 228 | shapecode_2_y=0.380 |
| 229 | shapecode_2_rad=0.15640 |
| 230 | shapecode_2_ang=0.00000 |
| 231 | shapecode_2_tex_ang=0.00000 |
| 232 | shapecode_2_tex_zoom=0.73678 |
| 233 | shapecode_2_r=1.000 |
| 234 | shapecode_2_g=1.000 |
| 235 | shapecode_2_b=1.000 |
| 236 | shapecode_2_a=0.700 |
| 237 | shapecode_2_r2=1.000 |
| 238 | shapecode_2_g2=1.000 |
| 239 | shapecode_2_b2=1.000 |
| 240 | shapecode_2_a2=0.000 |
| 241 | shapecode_2_border_r=0.500 |
| 242 | shapecode_2_border_g=0.500 |
| 243 | shapecode_2_border_b=0.000 |
| 244 | shapecode_2_border_a=0.000 |
| 245 | shape_2_per_frame1=x = instance / num_inst * 0.96 + 0.02; |
| 246 | shape_2_per_frame2=x = 0.02 + gmegabuf(8*instance+5000)*0.96/320; |
| 247 | shape_2_per_frame3=y0 = gmegabuf(8*instance + 4+5000) * 0.3; |
| 248 | shape_2_per_frame4=y = 0.05 + y0; |
| 249 | shape_2_per_frame5= |
| 250 | shape_2_per_frame6=rad = 0.015; border_a = 0.8; b = 0; |
| 251 | shape_2_per_frame7=if (q11==instance,rad = 0.05; a = q1;a2 = a; ; b2 = 1;,0); |
| 252 | shape_2_per_frame8= |
| 253 | shape_2_per_frame9= |
| 254 | shapecode_3_enabled=0 |
| 255 | shapecode_3_sides=4 |
| 256 | shapecode_3_additive=1 |
| 257 | shapecode_3_thickOutline=1 |
| 258 | shapecode_3_textured=1 |
| 259 | shapecode_3_num_inst=1 |
| 260 | shapecode_3_x=0.600 |
| 261 | shapecode_3_y=0.550 |
| 262 | shapecode_3_rad=0.17915 |
| 263 | shapecode_3_ang=0.00000 |
| 264 | shapecode_3_tex_ang=0.00000 |
| 265 | shapecode_3_tex_zoom=1.04372 |
| 266 | shapecode_3_r=1.000 |
| 267 | shapecode_3_g=1.000 |
| 268 | shapecode_3_b=0.000 |
| 269 | shapecode_3_a=1.000 |
| 270 | shapecode_3_r2=0.000 |
| 271 | shapecode_3_g2=1.000 |
| 272 | shapecode_3_b2=1.000 |
| 273 | shapecode_3_a2=1.000 |
| 274 | shapecode_3_border_r=1.000 |
| 275 | shapecode_3_border_g=0.800 |
| 276 | shapecode_3_border_b=0.500 |
| 277 | shapecode_3_border_a=0.000 |
| 278 | shape_3_per_frame1=a = 0; a2 = 0; |
| 279 | shape_3_per_frame2=border_a = 1; |
| 280 | per_frame_init_1=n = -10000; loop (20000, megabuf(n)=0; gmegabuf(n)=0; n +=1; ); |
| 281 | per_frame_init_2= |
| 282 | per_frame_init_3=MINBPM = 60; MAXBPM = 320; num_res = 200; |
| 283 | per_frame_init_4=index = 0; |
| 284 | per_frame_init_5=loop (num_res, |
| 285 | per_frame_init_6= n = index*8; |
| 286 | per_frame_init_7= BPM = minbpm * pow(maxbpm/minbpm,index/(num_res-1)); |
| 287 | per_frame_init_8= megabuf(n) = BPM; |
| 288 | per_frame_init_9= index += 1; |
| 289 | per_frame_init_10=); |
| 290 | per_frame_init_11= |
| 291 | per_frame_init_12= |
| 292 | per_frame_init_13=//structure of resonator data, starting at megabuf (0) |
| 293 | per_frame_init_14=//size = 8 |
| 294 | per_frame_init_15=//0: BPM |
| 295 | per_frame_init_16=//1: v |
| 296 | per_frame_init_17=//2: y |
| 297 | per_frame_init_18=//3: amplitude |
| 298 | per_frame_init_19=//4: amplitude after harmonics post processing |
| 299 | per_frame_init_20= |
| 300 | per_frame_init_21= |
| 301 | per_frame_init_22=//structure of shapes data, starting at gmegabuf (0) |
| 302 | per_frame_init_23=//0: x |
| 303 | per_frame_init_24=//1: y |
| 304 | per_frame_init_25=//2: |
| 305 | per_frame_init_26=//3: rad |
| 306 | per_frame_init_27=//4: brightness |
| 307 | per_frame_init_28= |
| 308 | per_frame_init_29=pi = 3.1416; |
| 309 | per_frame_init_30=ran1 = rand(1); |
| 310 | per_frame_init_31=ran2 = rand(1); |
| 311 | per_frame_init_32=ran3 = rand(1); |
| 312 | per_frame_init_33=ran4 = rand(1); |
| 313 | per_frame_1=//Martins resonant beat detection - use as it is |
| 314 | per_frame_2=//NOTE: uses megabuf (0) - megabuf (1600) |
| 315 | per_frame_3=//output: is_beat1 and is_beat2; 2:1 or 1:2 |
| 316 | per_frame_4= |
| 317 | per_frame_5=//-------------- Start ---------------------------- |
| 318 | per_frame_6=dt = min (1/fps,0.1) ; //Stability ! |
| 319 | per_frame_7=dec_m = 1 - 4*dt; dec_s = 1 - 1.25*dt; |
| 320 | per_frame_8=vol = max(0.5,bass+mid); |
| 321 | per_frame_9=vol_ = vol_*dec_m + (1-dec_m)*vol; excite = (vol-vol_)/vol_; |
| 322 | per_frame_10=index=0; ratio = log(maxbpm/minbpm); sum_res = 0.01; |
| 323 | per_frame_11=loop (num_res, |
| 324 | per_frame_12= n = index*8; |
| 325 | per_frame_13= omega = megabuf(n) * 6.2832/60; |
| 326 | per_frame_14= megabuf (n+1) *= 1-0.25*dt; //damping |
| 327 | per_frame_15= EC_Steps = int (10*omega*dt)+1; |
| 328 | per_frame_16= loop (EC_Steps, // Euler-Cauchy steps |
| 329 | per_frame_17= megabuf (n+1) += (excite - sqr(omega)*megabuf(n + 2)) * dt/EC_Steps; |
| 330 | per_frame_18= megabuf (n+2) += megabuf(n+1) * dt/EC_Steps); |
| 331 | per_frame_19= beatcos = megabuf(n+1); beatsin = megabuf(n+2)*omega; //2pi/60 |
| 332 | per_frame_20= quad = sqrt (pow(beatsin,2) + pow(beatcos,2)) ; |
| 333 | per_frame_21= megabuf (n+3) = megabuf(n+3) *dec_s + quad* (1-dec_s); |
| 334 | per_frame_22= megabuf (n+4) = megabuf(n+3); |
| 335 | per_frame_23= stage = 2; //Addition d. Harmonischen |
| 336 | per_frame_24= loop (2, |
| 337 | per_frame_25= ind2 = int (0.5 + index + (num_res-1)/ratio*log(stage)); |
| 338 | per_frame_26= if ((ind2 <= num_res), |
| 339 | per_frame_27= n2 = ind2*8; |
| 340 | per_frame_28= A2 = max(max(megabuf(n2+3),megabuf(n2-8+3)),megabuf(n2+8+3)); |
| 341 | per_frame_29= megabuf(n+4) *= 1 + 2/(stage*stage)*A2/(A2+megabuf(n+3)),0); |
| 342 | per_frame_30= stage *= 2; |
| 343 | per_frame_31= ); |
| 344 | per_frame_32= Hyst = 1 + min (0.25, abs (index-maxind)*0.02); |
| 345 | per_frame_33= if (megabuf(n+4) > megabuf (maxind*8+4)*Hyst, maxind = index,0); |
| 346 | per_frame_34= sum_res += megabuf (n+3); |
| 347 | per_frame_35= index += 1; |
| 348 | per_frame_36=); |
| 349 | per_frame_37=certain = megabuf(maxind*8+3)/(sum_res/num_res); |
| 350 | per_frame_38=//Doppelten oder, falls nicht moeglich, halben beat indizieren |
| 351 | per_frame_39=maxind2 = int (0.5 + maxind + (num_res-1)/ratio*log(2)); |
| 352 | per_frame_40=if (maxind2 > num_res, maxind2 = int (0.5 + maxind + (num_res-1)/ratio*log(0.5)),0); |
| 353 | per_frame_41=sig1 = (sig1 + megabuf(maxind*8+1))/2 + excite * 0; //check ###### |
| 354 | per_frame_42=is_beat1 = (sig1 > 0) && (sig1_ <= 0); |
| 355 | per_frame_43=sig2 = (sig2 + megabuf(maxind2*8+1))/2 + excite * 0; //check ###### |
| 356 | per_frame_44=is_beat2 = (sig2 > 0) && (sig2_ <= 0); |
| 357 | per_frame_45=fastpace = if (maxind > maxind2, sig1 * sig1_ < 0, sig2 * sig2_ < 0); |
| 358 | per_frame_46=sig1_ = sig1; |
| 359 | per_frame_47=sig2_ = sig2; |
| 360 | per_frame_48=//-------------- End ---------------------------- |
| 361 | per_frame_49=tog1 = sig1 > 0; |
| 362 | per_frame_50=tog2 = sig2 > 0; |
| 363 | per_frame_51=sbeat1 = (sbeat1 + is_beat1)/2; |
| 364 | per_frame_52=sbeat2 = (sbeat2 + is_beat2)/2; |
| 365 | per_frame_53=//fastpace = if (maxind > ind2, is_beat1,is_beat2); |
| 366 | per_frame_54=prog1 = (prog1 + is_beat1) %512; |
| 367 | per_frame_55=prog2 = (prog2 + is_beat2) %512; |
| 368 | per_frame_56=prog3 = (prog3 + fastpace) %512; |
| 369 | per_frame_57= |
| 370 | per_frame_58=maxi = min (maxind, maxind2); |
| 371 | per_frame_59=//maxi = maxind; //#####??? |
| 372 | per_frame_60=trunner = trunner + dt*megabuf (maxi*8)/60*2*pi; |
| 373 | per_frame_61=corr = if (push, 0.5*corr + 0.5*cos (trunner), corr*dec_s); |
| 374 | per_frame_62=trunner -= corr * dt; |
| 375 | per_frame_63=trunner_ = dec_s * trunner_ + (1-dec_s)*trunner/2; |
| 376 | per_frame_64= |
| 377 | per_frame_65=q14 = trunner_; |
| 378 | per_frame_66=q15 = cos(trunner_); |
| 379 | per_frame_67=q16 = sin(trunner_); |
| 380 | per_frame_68= |
| 381 | per_frame_69=q32 = aspecty; |
| 382 | per_frame_70=//-------------------------------------------------------- |
| 383 | per_frame_71=change = is_beat1 && (prog1%20 == 0); |
| 384 | per_frame_72=schange = bnot (oldind == maxind) * (t1 > 10) || (t1>30); |
| 385 | per_frame_73=t1 = if (schange, 0, t1+dt); |
| 386 | per_frame_74=oldind = maxind; |
| 387 | per_frame_75= |
| 388 | per_frame_76=ran1 = if (change, rand (100)/100, ran1); |
| 389 | per_frame_77=ran2 = if (change, rand (100)/100, ran2); |
| 390 | per_frame_78=ran3 = if (change, rand (100)/100, ran3); |
| 391 | per_frame_79=ran4 = if (change, rand (100)/100, ran4); |
| 392 | per_frame_80=ran1_ = ran1_ + max(min(ran1-ran1_,0.02),-0.02)*dt*16; |
| 393 | per_frame_81=ran2_ = ran2_ + max(min(ran2-ran2_,0.02),-0.02)*dt*16; |
| 394 | per_frame_82=ran3_ = ran3_ + max(min(ran3-ran3_,0.02),-0.02)*dt*16; |
| 395 | per_frame_83=ran4_ = ran4_ + max(min(ran4-ran4_,0.1),-0.1)*dt*8; |
| 396 | per_frame_84= |
| 397 | per_frame_85=scale = sqrt (certain/4); |
| 398 | per_frame_86=q1 = prog1; |
| 399 | per_frame_87=q2 = prog2; |
| 400 | per_frame_88=q3 = prog3; |
| 401 | per_frame_89= |
| 402 | per_frame_90=num_shapes = 8; reg00 = num_shapes; |
| 403 | per_frame_91=recsize = 8; reg01 = recsize; |
| 404 | per_frame_92= |
| 405 | per_frame_93=scheme = if (schange, int (rand(3)), scheme) ; |
| 406 | per_frame_94=m = 0; |
| 407 | per_frame_95=loop (num_shapes * (vol_> 0.7), |
| 408 | per_frame_96= n = m*recsize; |
| 409 | per_frame_97= if (scheme ==0, |
| 410 | per_frame_98= arg = q14 - 100*pi*int(q14/100/pi); |
| 411 | per_frame_99= x = sin(if (ran3 > 0.4,arg,prog2)/2 * (1+4*ran1) *(m/num_shapes-0.5)); |
| 412 | per_frame_100= gmegabuf (n) = x*0.45+0.5; |
| 413 | per_frame_101= y = 2*(m%2-0.5) * max(min (1.8* if (m%2 == 0, cos(arg) ,cos(arg+pi/2*(ran2>0.5))),1),-1); |
| 414 | per_frame_102= gmegabuf (n+1) = if (ran4 > 0.7, max(min(6*cos(x*pi/3),1),-1),1) * y * 0.4 + 0.5; |
| 415 | per_frame_103= gmegabuf (n+4) = bnot(schange);; |
| 416 | per_frame_104= ,0); //end if scheme ==1 |
| 417 | per_frame_105=m += 1); |
| 418 | per_frame_106= |
| 419 | per_frame_107=m = 0; |
| 420 | per_frame_108=loop (num_shapes * (vol_> 0.7), |
| 421 | per_frame_109= n = m*recsize; |
| 422 | per_frame_110= if (scheme ==1, |
| 423 | per_frame_111= k1 = m/num_shapes; |
| 424 | per_frame_112= arg = (prog3)/16 + k1/16* int((8*ran1-4)*ran1) ; |
| 425 | per_frame_113= x = (abs(arg-int(arg)-0.5)-0.25)*4 * (m%2-0.5)*2; |
| 426 | per_frame_114= y = (k1-0.5)*2*sin(q14+ran4) ;; |
| 427 | per_frame_115= |
| 428 | per_frame_116= gmegabuf (n) = x * 0.48 + 0.5; |
| 429 | per_frame_117= gmegabuf (n+1) = y * 0.48 + 0.5; |
| 430 | per_frame_118= gmegabuf (n+4) = bnot(schange); |
| 431 | per_frame_119= ,0); //end if scheme ==1 |
| 432 | per_frame_120=m += 1); |
| 433 | per_frame_121= |
| 434 | per_frame_122=m = 0; |
| 435 | per_frame_123=loop (num_shapes * (vol_> 0.7), |
| 436 | per_frame_124= n = m*recsize; |
| 437 | per_frame_125= if (scheme ==2, |
| 438 | per_frame_126= k1 = m/num_shapes; |
| 439 | per_frame_127= arg = (q15*q16*ran1*(k1*ran3*4-2)+q14/pi*(1+ (ran4>0.8))+ran2_*4)/8 ; |
| 440 | per_frame_128= x = (abs(arg-int(arg)-0.5)-0.25)*4 * (m%2-0.5)*2; |
| 441 | per_frame_129= y = (k1-.4+q15*0.2*ran2)*2*sin(q14+ran4) ;; |
| 442 | per_frame_130= |
| 443 | per_frame_131= gmegabuf (n) = x * 0.48 + 0.5; |
| 444 | per_frame_132= gmegabuf (n+1) = y * 0.48 + 0.5; |
| 445 | per_frame_133= gmegabuf (n+4) = bnot(schange);; |
| 446 | per_frame_134= ,0); //end if scheme ==1 |
| 447 | per_frame_135=m += 1); |
| 448 | per_frame_136= |
| 449 | per_frame_137= |
| 450 | per_frame_138= |
| 451 | per_frame_139=monitor = scheme; |
| 452 | per_frame_140=n = 0; loop (2000, gmegabuf(n+5000) = megabuf(n); n += 1); |
| 453 | per_pixel_1=zoom = .99; rot = 0; warp = 0; dy = -0.00; dx = 0.00; |
| 454 | per_pixel_2= |
| 455 | per_pixel_3=zoom = 1; dx = 0; dy = 0; |
| 456 | warp_1=`#define sat saturate |
| 457 | warp_2=`sampler sampler_pw_noise_lq; |
| 458 | warp_3=`float3 color, mus; |
| 459 | warp_4=`float2 uv1, uv2, uv3; |
| 460 | warp_5=`float arg, arg2; |
| 461 | warp_6=` |
| 462 | warp_7=`float aTan2(float y, float x) {float angle; float abs_y = abs(y); |
| 463 | warp_8=`if (x >= 0) {float r = (x - abs_y) / (x + abs_y); angle = 1-r;} |
| 464 | warp_9=`else {float r = (x + abs_y) / (abs_y - x); angle = 3-r; } |
| 465 | warp_10=`return y < 0 ? -angle : angle;} |
| 466 | warp_11=` |
| 467 | warp_12=` |
| 468 | warp_13=`shader_body { |
| 469 | warp_14=` |
| 470 | warp_15=`ret = GetPixel (uv_orig)*0.4; |
| 471 | warp_16=`} |
| 472 | comp_1=`float3 Get1 (float2 uvi) {return lerp (GetPixel (uvi), GetBlur1(uvi), 0.8);} |
| 473 | comp_2=` |
| 474 | comp_3=` |
| 475 | comp_4=`shader_body { |
| 476 | comp_5=`//uv = mul (uv-0.5, float2x2 (q15,q16,-q16,q15))+0.5; |
| 477 | comp_6=`// uv = (uv-0.5)*aspect.yx + 0.5; |
| 478 | comp_7=`//uv = uv.yx; |
| 479 | comp_8=`//uv = 1- abs( frac((uv-.5)*1.5 * 0.5 ) * 2 - 1.0 ); // Eo.S. mirror code |
| 480 | comp_9=` |
| 481 | comp_10=`//uv = float2 (abs(uv.x-0.5), uv.y); |
| 482 | comp_11=`//uv = float2 (uv.x, abs(uv.y-0.5)*2); |
| 483 | comp_12=` |
| 484 | comp_13=`ret = saturate(2*Get1 (uv)); |
| 485 | comp_14=`//ret = max (Get1(uv), Get1 (1-uv/2)); |
| 486 | comp_15=` |
| 487 | comp_16=`ret *= 2*normalize ((tex2D (sampler_noise_hq,(uv+q2/4)/8)) + 0); |
| 488 | comp_17=` |
| 489 | comp_18=` |
| 490 | comp_19=`//ret *= (hue_shader *5 -4)*2; |
| 491 | comp_20=`} |
| 492 | comp_21=` |